<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Dumps your lovingly prepared movie out</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swfmovie.nextframe.html">SWFMovie::nextFrame</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swfmovie.remove.html">SWFMovie::remove</a></div>
 <div class="up"><a href="class.swfmovie.html">SWFMovie</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="swfmovie.output" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SWFMovie::output</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.3)</p><p class="refpurpose"><span class="refname">SWFMovie::output</span> &mdash; <span class="dc-title">Dumps your lovingly prepared movie out</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-swfmovie.output-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>SWFMovie::output</strong></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$compression</code></span>
  ] )</div>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">此函数是<em class="emphasis">实验性</em>的。此函数的表象，包括名称及其相关文档都可能在未来的
PHP 发布版本中未通知就被修改。使用本函数风险自担 。</p></div>
  <p class="para">
   Dumps the <a href="class.swfmovie.html" class="classname">SWFMovie</a>.
  </p>
  <p class="para">
   Don&#039;t forget to send the <em>Content-Type</em> HTTP header file
   before using this function, in order to display the movie in a browser.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-swfmovie.output-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">compression</code></em></dt>

     <dd>

      <p class="para">
       The compression level can be a value between 0 and 9, defining the SWF
       compression similar to gzip compression.
      </p>
      <p class="para">
       This parameter is only available as of Flash MX (6).
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-swfmovie.output-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Return the number of bytes written or <strong><code>FALSE</code></strong> on error.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-swfmovie.output-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-3457">
    <p><strong>Example #1 Displaying your $movie in a browser</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />header</span><span style="color: #007700">(</span><span style="color: #DD0000">'Content-type:&nbsp;application/x-shockwave-flash'</span><span style="color: #007700">);&nbsp;<br /></span><span style="color: #0000BB">$movie</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">output</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-swfmovie.output-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="swfmovie.save.html" class="function" rel="rdfs-seeAlso">SWFMovie::save()</a> - Saves the SWF movie in a file</span></li>
    <li class="member"><span class="function"><a href="swfmovie.savetofile.html" class="function" rel="rdfs-seeAlso">SWFMovie::saveToFile()</a> - 说明</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swfmovie.nextframe.html">SWFMovie::nextFrame</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swfmovie.remove.html">SWFMovie::remove</a></div>
 <div class="up"><a href="class.swfmovie.html">SWFMovie</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
